package org.management.config.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.management.base.data.ResultCode;

/**
 * 功能描述
 *
 * @author jy
 * @date 2019/2/26
 * @description
 * @project management
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BusinessException extends Exception {

    private Integer code;

    private String message;

    public  BusinessException(){
        this.code = ResultCode.ERROR.getCode();
        this.message = super.getMessage();
    }
}
